Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Nov 12, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR enhances the handling of UTM parameters in the login process by collecting UTM cookies and forwarding them with the login request. It also updates the middleware to capture UTM parameters from the URL and set them as cookies when the user is not authenticated.

Detailed summary

  • Added UTM cookie collection in auth-actions.ts.
  • Included UTM cookies in the login request body.
  • Updated middleware.ts to capture UTM parameters from the URL.
  • Set UTM parameters as cookies if the user is not logged in.
  • Modified redirect and rewrite functions to handle UTM cookies.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 8:16am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 22, 2024 8:16am
thirdweb_playground ⬜️ Skipped (Inspect) Nov 22, 2024 8:16am
wallet-ui ⬜️ Skipped (Inspect) Nov 22, 2024 8:16am

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 12, 2024 21:40 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 12, 2024 21:40 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Nov 12, 2024

⚠️ No Changeset found

Latest commit: c0ab87d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 12, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@vercel vercel bot temporarily deployed to Preview – docs-v2 November 12, 2024 21:40 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 12, 2024
Copy link
Member Author

MananTank commented Nov 12, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MananTank MananTank changed the title Send UTM params when logging into dashboard WIP - Send UTM params when logging into dashboard Nov 12, 2024
@codecov
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.86%. Comparing base (f0c077c) to head (c0ab87d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5400   +/-   ##
=======================================
  Coverage   43.86%   43.86%           
=======================================
  Files        1076     1076           
  Lines       55972    55972           
  Branches     3910     3910           
=======================================
  Hits        24551    24551           
  Misses      30738    30738           
  Partials      683      683           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from f0c077c
packages 38.59% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

---- 🚨 Try these New Features:

@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.97 KB (0%) 900 ms (0%) 498 ms (+17.16% 🔺) 1.4 s
thirdweb (cjs) 105.01 KB (0%) 2.2 s (0%) 824 ms (+16.02% 🔺) 3 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 209 ms (+1441.78% 🔺) 321 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 118 ms (+2410.26% 🔺) 128 ms
thirdweb/react (minimal + tree-shaking) 18.38 KB (0%) 368 ms (0%) 205 ms (+216.31% 🔺) 572 ms

@MananTank MananTank force-pushed the 11-13-send_utm_params_when_logging_into_dashboard branch from 96d9014 to 01e215c Compare November 13, 2024 01:16
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 13, 2024 01:16 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 13, 2024 01:16 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 13, 2024 01:16 Inactive
@MananTank MananTank marked this pull request as ready for review November 13, 2024 01:17
@MananTank MananTank changed the title WIP - Send UTM params when logging into dashboard Send UTM params when logging into dashboard Nov 13, 2024
@MananTank MananTank force-pushed the 11-13-send_utm_params_when_logging_into_dashboard branch from 01e215c to f6d4f1c Compare November 13, 2024 01:35
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 13, 2024 01:35 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 13, 2024 01:35 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 13, 2024 01:35 Inactive
@MananTank MananTank requested a review from jnsdls November 13, 2024 01:36
@gregfromstl gregfromstl changed the title Send UTM params when logging into dashboard [Dashboard] Feature: Send UTM params when logging into dashboard Nov 13, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 22, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on collecting and managing `utm_` cookies for tracking purposes during user login and middleware processing. It enhances the handling of cookies to ensure `utm_` parameters are captured and forwarded appropriately in API requests and redirects.

### Detailed summary
- Added collection of `utm_` cookies in `auth-actions.ts`.
- Modified the `doLogin` function to include `utmCookies` in the request body.
- Implemented logic in `middleware.ts` to capture `utm_` parameters from URL and set them as cookies.
- Updated redirect and rewrite functions to include `cookiesToSet` for managing cookies in responses.
- Ensured cookies are set in the response for various redirect scenarios.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the 11-13-send_utm_params_when_logging_into_dashboard branch from f6d4f1c to c0ab87d Compare November 22, 2024 08:03
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 22, 2024 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 22, 2024 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 22, 2024 08:03 Inactive
@graphite-app graphite-app bot merged commit c0ab87d into main Nov 22, 2024
31 of 32 checks passed
@graphite-app graphite-app bot deleted the 11-13-send_utm_params_when_logging_into_dashboard branch November 22, 2024 08:17
@vercel vercel bot temporarily deployed to Production – docs-v2 November 22, 2024 08:17 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui November 22, 2024 08:17 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground November 22, 2024 08:17 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants